package by.ad;

import java.io.ObjectStreamClass;
import java.io.Serializable;
import java.util.Date;

@SuppressWarnings("serial")
public class CachedPage
  implements Serializable
{
  public final Date lastModified = new Date();
  public final String content;
  public final String contentType;
  
  public CachedPage(final String content, final String contentType) 
  {
    this.content = content;
    this.contentType = contentType;
  }
  
  // each time when CachedPage class changes it will automatically get different serialVersionUID 
  public static final Long autoSerialVersionUID = 
    Long.valueOf(ObjectStreamClass.lookup(CachedPage.class).getSerialVersionUID());
}